package cn.xinfei.xdecision.common.model.datax.enums;

import lombok.Getter;

@Getter
public enum RetryStrategy implements ICodeEnum, INameEnum {
    NEVERY_RETRY_POLICY("N", "不允许重试"),
    TIMOUT_RETRY_POLICY("T", "在指定超时时间内重试"),
    DELAY_RETRY_POLICY("D", "阶梯延时重试"),
    SIMPLE_RETRY_POLICY("S", "固定次数重试");

    private String code;
    private final String name;

    RetryStrategy(String code, String name) {
        this.code = code;
        this.name = name;
    }
}
